﻿package net.area80.serverside.events
{
	import flash.events.Event;
	import flash.events.HTTPStatusEvent;
	import flash.events.IOErrorEvent;
	import flash.events.ProgressEvent;
	import flash.events.SecurityErrorEvent;
	import flash.net.URLLoader;
	
	/**
	* ServerSideEvent
	* @author Wissarut Pimanmassuriya
	*/
	public class ServerSideEvent extends Event
	{
		public var urlLoader:URLLoader
		public var extras:Object;
		
		public static const ACTIVITY_SUCCESS:String = "success";
		public static const ACTIVITY_ERROR:String = "error";
		
		public static const PROGRESS:String = ProgressEvent.PROGRESS;
		public static const IO_ERROR:String = IOErrorEvent.IO_ERROR;
		public static const COMPLETE:String = Event.COMPLETE;
		public static const OPEN:String = Event.OPEN;
		public static const SECURITY_ERROR:String = SecurityErrorEvent.SECURITY_ERROR;
		public static const HTTP_STATUS:String = HTTPStatusEvent.HTTP_STATUS;
	
		
		
		public function ServerSideEvent (type:String, urlLoader:URLLoader, extras:Object = null):void {
			this.urlLoader = urlLoader;
			this.extras = extras;
			super(type);
		}
	}
	
}